package test.multi_thread.synch_674;

/**
 * 
 * P674    21.3.1
 * @author yw
 *
 */
public abstract class IntGenerator {
	private volatile boolean canceled = false;
	public abstract int next();
	public void cancel(){
		canceled = true;
	}
	public boolean isCanceled(){
		return canceled;
	}
}
